<div class="header">
    <back-Btn></back-Btn>
    报销单
    <div class="right-btn" ng-click="submit()">
        提交
    </div>
</div>
<div class="container finance">
    <div class="list f_sk">
        <div class="list-item flex readonly">
            <div class="w35 c9">报销金额:</div>
            <div class="w65">
                {{totalAmount}}
            </div>
        </div>
        <div class="list-item list-item-textarea required">
            <div class="c9">报销事由</div>
            <textarea cols="30" rows="10" ng-model="param.remark" placeholder="内容字数只有小于500个字符"></textarea>
        </div>
        <div class="list-item flex icon_menu" ng-click="showrelModule()">
            <div class="w35 c9">关联模块:</div>
            <div class="w65">
                {{param.relatedModuleName}}
            </div>
        </div>
        <div class="flex list-item icon_rightArrow" ng-click="chooseinfo()" ng-class="{required:param.relatedModuleName&&param.relatedModuleName!=='无'}">
            <div class="w35 c9">模块编号:</div>
            <div class="w65" ng-class="{cd9:!param.moduleNo}">{{param.moduleNo||"点击选择"}}</div>
        </div>
        <div class="flex list-item required" ng-click="showCertificate()">
            <div class="w45 c9">添加报销明细:</div>
            <div class="w55 tr"><span class="icon_add fs20">+</span></div>
        </div>
        <div class="selectinfo">
            <!-- <div class="info-tip">报销单明细</div> -->
            <div class="list tablestyle ">
                <div class="list-item" ng-repeat="item in param.details">
                    <!-- <p class="item-num"><span>{{$index+1}}</span></p> -->
                    <div class="delete_icon icon_del" ng-click="deletedItem($index)">-</div>
                    <div class="grid list-content">
                        <div class="col-1-4 c9">报销类型</div>
                        <div class="col-3-4">{{item.resiType}}</div>
                    </div>
                    <div class="grid list-content">
                        <div class="col-1-4 c9">单据数量</div>
                        <div class="col-3-4">{{item.receiptsSum}}</div>
                    </div>
                    <div class="grid list-content">
                        <div class="col-1-4 c9">金额</div>
                        <div class="col-3-4">{{item.amount}}</div>
                    </div>
                    <div class="grid list-content">
                        <div class="col-1-4 c9">备注</div>
                        <div class="col-3-4">{{item.remark_}}</div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 自定义字段 -->
        <div user-defined field-map="param.fieldMap" validation="validation"></div>
        <!-- 附件 -->
        <div class="list-item list-item-textarea" file-upload file-data="param.attachment">
        </div>
        <!-- 审查日志 -->
        <div log-list log-result='logData.result'></div>
        <!-- 删除流程 -->
        <div delete-flow id="{{param.processInstanceId}}" ng-show="logData.result.length"></div>
    </div>
</div>
<!-- 选择证书明细子项目 -->
<div class="list tablestyle pickceritem" ng-show="showCerPicker">
    <div class="list-item">
        <div class="grid list-content">
            <div class="col-1-4 c9">报销类型</div>
            <div class="col-3-4">
                <select name="sex" id="sexSelect" ng-model="picker.resiType" ng-options="item.value as item.value for item in resiTypeList">
                    <option value="">选择报销类型</option>
                </select>
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-1-4 c9">单据数量</div>
            <div class="col-3-4">
                <input type="tel" ng-model="picker.receiptsSum" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-1-4 c9">金额</div>
            <div class="col-3-4">
                <input type="text" ng-model="picker.amount" tel-directive />
            </div>
        </div>
        <div class="grid list-content">
            <div class="col-1-4 c9">备注</div>
            <div class="col-3-4">
                <input type="text" ng-model="picker.remark_" />
            </div>
        </div>
    </div>
    <div class="pickceritem-btn tc flex">
        <div class="cancel" ng-click="cacelCertificate()">取消</div>
        <div class="confirm" ng-click="addCertificate()">确定</div>
    </div>
</div>
<sheet-action ng-show="sheetObj.ifshowSheet" sheet-data="sheetObj"></sheet-action>